/*
 * @Author: zhaoziyin
 * @Date: 2022-09-02 17:01:16
 * @LastEditTime: 2022-09-08 16:08:17
 * @LastEditors: zhaoziyin
 * @Description: 一直游到海水变蓝
 * @FilePath: \项目\西安\xxtx-ui\src\main.js
 * 别乱动！
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import '@/styles.scss'
import '@/style/main.scss'
import * as filters from './filters'
// 引入公共样式页面
import Footer from '@/components/Footer';
import Header from '@/components/Header';

Vue.use(ElementUI)

// 全局注册Footer组件
Vue.component('Footer',Footer);
Vue.component('Header',Header);




// 页面跳转后滚动条位于最上方
router.afterEach((to,from,next) => {
  window.scrollTo(0,0);
});

// register global utility filters
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})


Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')